<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<script type="text/javascript">
	var artSecurityGrid = null;
	var sendAccountGrid = null;
	$(function(){
		artSecurityGrid = $("#art_security_grid").ligerGrid({
				title : '保证金列表',
                columns: [
							{
								display: '操作', 
								name: 'id',
								width:100,
								isAllowHide: false, 
								isSort : false,
								render: function (record, rowindex, value, column){
									var html = '<a onclick="resetAccount(\''+ record.memberId + '\')" href="javascript:;">重置余额</a>&nbsp;'; 
									return html; 
								}
							},
	            { display: '会员名称', name: 'memberName',isSort : false },
	            {
					display: '是否锁定', 
					name: 'isAccount',
					width:80,
					isAllowHide: false, 
					isSort : false,
					render: function (record, rowindex, value, column){
						if(value){
 	                		  return "<span>锁定，不可提现</span>"; 
 	                	  }else{
 	                		  return "<span>未锁定，可以提现</span>"; 
 	                	  } 
					}
				},
	            { display: '收款人姓名', name: 'bankMemberName',isSort : false },
	            { display: '收款人账号', name: 'bankAccount',isSort : false },
	            { display: '银行名称', name: 'bankName',isSort : false },
	            { display: '银行所在省', name: 'bankProvince',isSort : false },
	            { display: '银行所在市', name: 'bankCity',isSort : false },
	            { display: '备注', name: 'remark',isSort : false },
	            { display: '申请提现金额', name: 'securityMoney',isSort : false },
	            { display: '账户现有金额', name: 'accountOld',isSort : false },
                { display: '创建时间', name: 'gmtCreated',isSort : false,
                  render: function(record, rowindex, value, column){
                	 return (new Date(value.time)).format("yyyy年MM月dd日 hh:mm:ss");
                  }}
                
                ], 
                pageSize:30,
                root :'list',
                record:'totalRecord',
                url: "/misc/member/memberSecurityGrid.htm", 
                width: '99%',height:'99%'
            });


	});
	function resetAccount(memberId){
		sendAccountGrid = $.ligerDialog.open({ height: 300,width:300, url: "/misc/member/resetAccount.htm?memberId="+memberId, isResize: false ,modal:true,title:'更改保证金余额'});
	
	}
</script>
<div id="art_security_grid" style="margin:0; padding:0 ;" ></div>
